package org.scau.studentevaluation.client;

import io.swagger.annotations.ApiOperation;
import org.scau.studentevaluation.entity.dos.AttendedStudentListDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 通过 Feign 访问AttendedStudentList微服务
 * @Author: x1aolone
 * @Date: 2020/8/27 16:20
 */
@FeignClient(value = "eureka-client-attendedstudentlist",
        fallback = AttendedStudentListClientHystrix.class)
public interface AttendedStudentListClient {

    @DeleteMapping(value = "/attendedstudentlist/deleteStudents/{actId}")
    public String deleteStudentsByActId(@RequestParam("actId") Long actId);

    @PostMapping("/attendedstudentlist/InsertAttendedStudent")
    public int InsertAttendedStudent(@RequestBody List<AttendedStudentListDO> queryList);


}
